-- GENERATED SPELL FOR [Crushridge Mauler] --


function spell0_2254(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(6253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2254', 2318, 1)
end

function spell1_2254(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2254', 559, 1)
end

function Sorts_2254(pUnit, Event)
local choix_sorts_2254 = math.random(0, 1)
if choix_sorts_2254 == 0 then
pUnit:RegisterEvent('spell0_2254', 1, 1)
end
if choix_sorts_2254 == 1 then
pUnit:RegisterEvent('spell1_2254', 1, 1)
end
end

function mob2254_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2254', math.random(1500, 3000), 1)
end

function mob2254_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2254_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2254_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2254, 1, 'mob2254_Action')
RegisterUnitEvent(2254, 2, 'mob2254_Leave')
RegisterUnitEvent(2254, 3, 'mob2254_Kill')
RegisterUnitEvent(2254, 4, 'mob2254_Die')
